package io.yunho.yunho.interview.one.singleton.createbyuse;

/**
 * @author: Jason
 * @date: 2021/3/8 10:15
 * @description:
 */
public class SingletonUOneUnsafe {
    private static volatile SingletonUOneUnsafe INSTANCE;
    private SingletonUOneUnsafe(){}
    public static SingletonUOneUnsafe getInstance(){
        if (INSTANCE == null){
//            try {
//                Thread.sleep(100);
//            } catch (InterruptedException e) {
//                e.printStackTrace();
//            }
            INSTANCE = new SingletonUOneUnsafe();
        }
        return INSTANCE;
    }
}
